﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SportsPlatform.Base;
using SportsPlatform.Dto.WeChat;
using SportsPlatform.Query.WeChat;

namespace SportsPlatform.WeChat.IWeChat
{
    /// <summary>
    /// 我的报名查询
    /// </summary>
    public interface IRegistrationService
    {
        /// <summary>
        /// 移动端查询我的报名分页获取
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        Task<PagePagingDto<RegistrationInfoPageDto>> GetRegistrationInfoPage(RegistrationInfoListQuery query);

        /// <summary>
        /// 移动端我的报名详情查询
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        Task<ResultDto<RegistrationInfoDetailsDto>> GetRegistrationInfoDetails(RegistrationDetailsQuery query);

        /// <summary>
        /// 移动端增加报名信息
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        Task<BaseResultDto> AddOrUpdateWeChatRegistration(List<AddWeChatRegistrationQuery> query);


        /// <summary>
        /// 通过时间判断是否与比赛时间冲突
        /// </summary>
        /// <returns></returns>
        Task<ResultDto<bool>> GetByTimeIsConflict(List<AddWeChatRegistrationISQuery> querys);
    }
}
